# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xrandr
pkgver=1.5.2
pkgrel=0
pkgdesc="Command line interface to RandR extension"
url="https://www.x.org/wiki/"
arch="all"
license="MIT"
subpackages="$pkgname-doc"
makedepends="libxrandr-dev util-macros"
source="https://www.x.org/releases/individual/app/$pkgname-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	rm "$pkgdir"/usr/bin/xkeystone
}

sha512sums="
b536e8f1e04094894aa52ae496725c58691b043860b3327c41d737b07b642a939733321b62f698032b11ba857208a6177600a3ca3295ff1be6ade4341cdc2747  xrandr-1.5.2.tar.xz
"
